package com.miaoxie.forum.module.monitor.shared.util;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

import java.util.List;

/**
 * Created by miaoxie on 2017/3/30.
 */
public class SeleniumUtil {

    public static WebDriver requestUrl(){
        String urls = SeleniumUtil.class.getResource("/Driver/chromedriver.exe").getPath();
        String driverLoc = urls;
        String driver = "webdriver.chrome.driver";
        System.setProperty(driver, driverLoc);
        WebDriver webdriver;
        webdriver = new ChromeDriver();
        return webdriver;
    }
}
